<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="FCK" uri="http://java.fckeditor.net" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="/xboard/css/common.css" rel="stylesheet" type="text/css">
<title>Xboard</title>
</head>
<script type="text/javascript">
	function fn_Rewrite(){
		var obj = document.frm;
		obj.submit();
	}
</script>
<body>
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<table width="780" cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td align="center" style="padding:50px 0 15px 0; font-size:13px; font-weight:bold;">Xboard</td>
					</tr>
					<tr>
						<td align="left">
							<form action="./modfiy.action" method="post" name="frm">
								<input name="no" type="hidden" value="<s:property value='no'/>">
								<s:iterator value="vo">
								<table width="780" cellpadding="0" cellspacing="0" style="border-collapse: collapse;" border="1" bordercolor="#878787">
									<tr height="28">
										<td width="150" class="w_text">이름 : </td>
										<td width="240"><input type="text" name="writer" class="i_style input1" value="<s:property value='writer'/>" disabled="disabled"></td>
										<td width="150" class="w_text">이메일 :</td>
										<td width="240"><input type="text" name="email" class="i_style input1" value="<s:property value='email'/>"></td>
									</tr>
									<tr height="28">
										<td width="150" class="w_text">글제목:</td>
										<td width="480" colspan="3"><input type="text" name="subject" class="i_style input2" value="<s:property value='subject'/>"></td>
									</tr>
									<tr>
										<td width="150" class="w_text">내용:</td>
										<td colspan="3" align="center">
											<!--<textarea name="content" class="textarea1"><s:property value="content"/></textarea>-->
											<FCK:editor instanceName="content" toolbarSet="MyStyle" width="99%" height="500">
												<jsp:attribute name="value">
												<s:property value="content" escape="false"/>
												</jsp:attribute>
											</FCK:editor>
										</td>
									</tr>
									<tr height="28">
										<td width="150" class="w_text">비밀번호</td>
										<td colspan="3">
											<input type="password" class="i_style input1" name="pass" maxlength="8">
										</td>
									</tr>
								</table>
								</s:iterator>
							</form>
						</td>
					</tr>
					<tr>
						<td align="right">
							<table border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td style="padding-top: 10px;">
										<input class="b_style t_btn" type="button" value="저장하기" onclick="fn_Rewrite()">
										<input class="b_style t_btn" style="margin-left: 5px;" type="button" value="글목록" onclick="javascript:document.location.href='./list.action?page=<s:property value='page'/>'">
									</td>
								</tr>
							</table>
						</td>		
					</tr>
				</table>
			</td>
		</tr>
	</table>
</body>
</html>
